<template>
  <div>
    <div v-for="p,key in data.paths" :key="'path_'+key">
      <el-input v-model="data.paths[key]" style="" placeholder="输入或选择目录" />
      <el-button type="primary">选择</el-button>
      <el-button type="warning">移除</el-button>
    </div>
  </div>
</template>

<script lang="ts" setup>
import {reactive} from 'vue'
//import {Greet} from '../../wailsjs/go/main/App'

const data = reactive<{
  paths: Array<string>
}>({
    paths: []
})

const newInput = () => {
  data.paths.push('')
}
const delInput = (idx : number) => {
  data.paths.splice(idx)
}

const comfirm = () => {
  //todo ...保存
}
const getPaths = () => {
  // todo ... 获取所有路径
}
</script>


<style scoped lang="scss">

</style>
